import "./css/style.css";
import img1 from "./QQ图片20210617172347.jpg"
let list=[
    {
        img:img1,
        text:"王俊凯"
    },
    {
        img:img1,
        text:"王俊凯"
    },
    {
        img:img1,
        text:"王俊凯"
    },{
        img:img1,
        text:"王俊凯"
    },
]

const ul=document.querySelector("ul");
ul.innerHTML=list.map(item=>{
    return `<li>
    <img src="${item.img}" alt="">
    <p>${item.text}</p>
    </li>`
}).join("")